package com.hemaapp.yjnh.bean;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

import xtom.frame.XtomObject;
import xtom.frame.exception.DataParseException;

/**退货原因类别
 * @author ZhangGuiyou
 * Date: 2015-09-10 13:51
 */
public class ReturnType extends XtomObject implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private String id;// 主键id
	private String name;// 类别名称
	private String orderby;// 排序优先级
	
	public ReturnType(JSONObject jsonObject) throws DataParseException {
		if (jsonObject != null) {
			try {
				id = get(jsonObject, "id");
				name = get(jsonObject, "name");
				orderby = get(jsonObject, "orderby");

				log_i(toString());
			} catch (JSONException e) {
				throw new DataParseException(e);
			}
		}
	}
	
	@Override
	public String toString() {
		return "Blog [id=" + id + "name=" + name+ "orderby=" + orderby + "]";
	}
	
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	public String getname() {
		return name;
	}
	public String getorderby() {
		return orderby;
	}
}
